package io.renren.modules.sp.dao;

import io.renren.common.dao.BaseDao;
import io.renren.modules.sp.dto.SpMatchDTO;
import io.renren.modules.sp.entity.SpMatchEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
* 赛事
*
* @author whc 15953295779@126.com
* @since 3.0 2023-04-21
*/
@Mapper
public interface SpMatchDao extends BaseDao<SpMatchEntity> {
    IPage<SpMatchEntity> selectPageVo(Page page, @Param(Constants.WRAPPER) QueryWrapper<SpMatchDTO>  wrapper);
    IPage<SpMatchEntity> selectPageBy(Page page, @Param(Constants.WRAPPER)  Map<String,Object> param);
    List<Map<String,Object>> querySignUpList();
    List<Map<String,Object>> queryMatchingList(String status);
    List<Map<String,Object>> queryMatchingListByEndSignup(String status);
    List<Map<String,Object>> queryMatchItem(Serializable matchId, Serializable matchItemId, String city);


}
